package com.business_clean.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewGroup;

import com.business_clean.R;
import com.business_clean.app.base.BaseAgentWebActivity;
import com.business_clean.databinding.ActivityBaseH5Binding;

import me.hgj.mvvmhelper.base.BaseViewModel;

public class BaseH5Activity extends BaseAgentWebActivity<BaseViewModel, ActivityBaseH5Binding> {

    private String url;

    @Override
    public void initView(Bundle savedInstanceState) {
        if (getIntent() != null && getIntent().getExtras() != null) {
            url = getIntent().getExtras().getString("url");
        }
    }

    @Override
    public void onBindViewClick() {

    }

    @Override
    public void initObserver() {

    }

    @Override
    protected ViewGroup getAgentWebParent() {
        return mDatabind.flLayout;
    }

    @Override
    protected String getUrl() {
        if (!TextUtils.isEmpty(url)) {
            return url;
        }
        return "www.jiazhengye.cn";
    }
}